import React, {Component, PropTypes} from 'react';
import './combutton.scss';

class ComButton extends Component {
  constructor(props) {
    super(props);
  }
  static propTypes = {
    text: PropTypes.string,
    klass: PropTypes.string,
  };

  static defaultProps = {
    text: '确认',
    klass: 'primary',//共有3种：primary,secondary,third
  };
  render() {
     const klass = this.props.klass;
    return (
      <button className={klass}>{this.props.text}</button>
    );
  }

}  

export default ComButton;
